home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / picture / class.h < prev    next >
Text File  |  1993-09-23  |  789b  |  37 lines

  1. //    Copyright 1993 Ralph Gonzalez
  2.  
  3. /*
  4. *   FILE:    class.h
  5. *   AUTHOR:  R.G.
  6. *   CREATED: Mar 31, 1992
  7. *   
  8. *   Header file defines Generic_Class
  9. */
  10.  
  11. # ifdef    THINK_C
  12. # include    "Types.h"    // TC4: # include    "MacTypes.h"
  13. # endif
  14.  
  15. # ifndef class_h       // prevents header "re-inclusion"
  16. # define class_h
  17.  
  18. typedef  int   boolean;  // simulate boolean data type
  19. # define TRUE  1
  20. # define FALSE 0
  21.  
  22. /******************************************************************
  23. *   Root class for all classes.  In Think C assume the "classes are
  24. *   indirect by default" compiler option is on.
  25. ******************************************************************/
  26. class  Generic_Class
  27. {
  28. protected:
  29.     boolean         initialized;
  30.  
  31. public:
  32.     Generic_Class(void);
  33.     boolean is_initialized(void);
  34. };
  35.  
  36. # endif
  37.